Add AppArmor notice for Debian/Ubuntu users during server startup
authorOtto Kekäläinen <otto@debian.org>
Wed, 8 Apr 2026 15:32:51 +0000 (23:32 +0800)
committerOtto Kekäläinen <otto@debian.org>
Tue, 2 Jun 2026 00:02:02 +0000 (00:02 +0000)
commit29f369085fdc92e52e0bc43eba36df5b29b9b2b0
tree738dd7dea9eeaebfd6ea80a1285ebce2b0bdfbd3
parentcf0ec7cd089b2c278f49f535e541268e4be90edf
Add AppArmor notice for Debian/Ubuntu users during server startup

When MariaDB fails to start due to permission errors, users on
Debian/Ubuntu might not be able to guess that AppArmor might be the
cause, and they should check for AppArmor denials in the kernel audit
log.

Add an informational message during startup that:
- Only prints when the 'mariadbd' profile is actually loaded
- Includes exact commands from the Debian packaging NEWS
- Provides actionable paths for local overrides
- Mentions both complain and enforce modes for troubleshooting

The message is printed once during normal server startup (not in help or
bootstrap modes) through the existing logging infrastructure, ensuring
it appears in both syslog and the error log where users will see it when
troubleshooting startup failures.

Forwarded: https://github.com/MariaDB/server/pull/5003

Gbp-Pq: Name Add-AppArmor-notice-for-Debian-Ubuntu-users-during-server.patch
sql/mysqld.cc